﻿Public Class NhaDTO
    Private _mNha As String
    Private _maloainha As String
    Private _dientich As Integer
    Private _giathue As Integer
    Private _matienich As String
    Private _thoigianthue As Integer
    Private _ngaydang As Date
    Private _songuoio As Integer
    Private _manv As String
    Private _cmndchunha As String


    Public Property MaThongTinNha() As String
        Get
            Return _mNha
        End Get
        Set(ByVal value As String)
            _mNha = value

        End Set
    End Property

    Public Property MaLoaiNha() As String
        Get
            Return _maloainha
        End Get
        Set(ByVal value As String)
            _maloainha = value

        End Set
    End Property

    Public Property DienTich() As Integer
        Get
            Return _dientich
        End Get
        Set(ByVal value As Integer)
            _dientich = value

        End Set
    End Property

    Public Property GiaThue() As Integer
        Get
            Return _giathue
        End Get
        Set(ByVal value As Integer)
            _giathue = value

        End Set
    End Property

    Public Property MaTienIch() As String
        Get
            Return _matienich
        End Get
        Set(ByVal value As String)
            _matienich = value

        End Set
    End Property

    Public Property ThoiGianThue() As Integer
        Get
            Return _thoigianthue
        End Get
        Set(ByVal value As Integer)
            _thoigianthue = value

        End Set
    End Property

    Public Property NgayDang() As Date
        Get
            Return _ngaydang
        End Get
        Set(ByVal value As Date)
            _ngaydang = value

        End Set
    End Property

    Public Property SoNguoiO() As Integer
        Get
            Return _songuoio
        End Get
        Set(ByVal value As Integer)
            _songuoio = value

        End Set
    End Property

    Public Property MaNhanVien() As String
        Get
            Return _manv
        End Get
        Set(ByVal value As String)
            _manv = value

        End Set
    End Property

    Public Property CMNDChuNha() As String
        Get
            Return _cmndchunha
        End Get
        Set(ByVal value As String)
            _cmndchunha = value

        End Set
    End Property

    

    Public Sub New(ByVal manha As String, ByVal maloainha As String, ByVal dientich As String, _
                   ByVal giathue As String, ByVal matienich As String, ByVal tgthue As String, _
                   ByVal ngaydang As Date, ByVal songuoio As String, ByVal manhanvien As String, _
                   ByVal cmndchunha As String)
        Me._mNha = manha
        Me._maloainha = maloainha
        Me._dientich = dientich
        Me._giathue = giathue
        Me._matienich = matienich
        Me._thoigianthue = tgthue
        Me._ngaydang = ngaydang
        Me._songuoio = songuoio
        Me._manv = manhanvien
        Me._cmndchunha = cmndchunha

    End Sub

    Public Sub New(ByVal MaNha As String)
        Me._mNha = MaNha
    End Sub
End Class
